<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //定义方法一
    function add(a,b){
        return a+b;
    }
    console.log(add(3,5));
    
    //定义方法二
    let add2 = function(a,b){
        return a+b;
    }
    let ret = add2(8,3);
    console.log(ret);
</script>
</html>